<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<h2 class="contentTitle"> 更新员工信息</h2>


<div class="pageContent">
	
	<form method="post" action="<c:url value="/employee/update.do"/>" class="pageForm required-validate" method="post" enctype="multipart/form-data"  onsubmit="return iframeCallback(this,navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="97">
<input type="hidden" name="id" value="${employee.id}" maxlength="50" class="required"/>
				<dl>
				<dt>员工名：</dt>
				<dd>
					<input type="text" name="name" value="${employee.name}"  maxlength="50" class="required" alt="请输入客户名"/>
					
				</dd>
			</dl>
			<dl>
				<dt> 联系电话：</dt>
				<dd>
					<input type="text" name="phone" value="${employee.phone}"   class="required" alt="请输入客户地址"/>
				
				</dd>
			</dl>
			
			<dl>
				<dt>QQ：</dt>
				<dd>
					<input type="text" name="qq" value="${employee.qq}"   class="required" alt="请输入QQ号码"/>
					
				</dd>
			</dl>
			<dl>
				<dt>性别：</dt>
				<dd>
				
			
				<select name="gender"  class="required">
				
				<option value="1" <c:if test="${employee.gender == 1}">selected </c:if> > 男</option>
				
					
				<option value="0" <c:if test="${employee.gender == 0}"> selected </c:if>>女</option>
				
				
				
				</select>
				</dd>
			</dl>
				<dl>
				<dt>头像：</dt>
				<dd>			
		     <input type="file" name="file"/>
				</dd>
			</dl>
				<div><img width="300" height="100" src="<c:url value="${employee.headPic}"/>"></div>
			<dl>
				<dt>角色：</dt>
				<dd>
					<select name="role"  class="required">
				<option value="1" <c:if test="${employee.role == 1}">selected </c:if>>管理员</option>
				<option value="2" <c:if test="${employee.role == 2}">selected</c:if>>普通员工</option>
				<option value="3" <c:if test="${employee.role == 3}"> selected</c:if>>财务</option>
				</select>
				</dd>
			</dl>
			<dl>
				<dt>备注：</dt>
				<dd>
					<input type="text" value="${employee.remark}"  name="remark"/>
				
				</dd>
			</dl>
			
			
			<div class="divider"></div>
		
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>

